package com.situ.mall.controller.front;

import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.situ.mall.common.ServerResponse;
import com.situ.mall.entity.User;
import com.situ.mall.service.IUserService;

@Controller
@RequestMapping("/user")
public class FrontUserController {
	
	@Autowired
	private IUserService userService;
	
	@RequestMapping("/login.shtml")
	@ResponseBody
	public ServerResponse login(String username, String password, HttpSession session) {
		return userService.login(username, password, session);
	}
}
